//
//  UIAlertView+TLBlock.h
//  tlAlertView
//
//  Created by telen on 15/12/29.
//  Copyright © 2015年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^TLAlertView_didClick)( UIAlertView* _Nullable alertView,NSInteger buttonIndex);
typedef void(^TLAlertView_willShow)( UIAlertView* _Nullable alertView);

typedef void (^AlertBlockCase)(void);
@interface UIAlertView_Models : NSObject
@property(nonatomic,strong,nullable)AlertBlockCase blockCase;
@property(nonatomic,strong,nullable)NSString* btnTitle;
@end

@interface UIAlertView(TLBlock)<UIAlertViewDelegate>

+(instancetype) tl_showTitle:(nullable NSString *)title message:(nullable NSString *)message didClick:(nullable TLAlertView_didClick) clicked buttonTitles:(nullable NSString *)otherButtonTitles, ...; //btn 不能超过10个；

+ (instancetype)tl_showTitle:(nullable NSString *)title message:(nullable NSString *)message willShow:(nullable TLAlertView_willShow)willshow didClick:(nullable TLAlertView_didClick)clicked buttonTitles:(nullable NSString *)otherButtonTitles, ...; //btn 不能超过10个；

+ (instancetype)tl_showTitle:(nullable NSString *)title message:(nullable NSString *)message models:(nullable NSArray<UIAlertView_Models*>*)btns; //btn 不能超过10个；

+ (BOOL)isAlertShow;//是否有AlertShow
+ (NSUInteger)countShowing;

@end
